//
//  ViewController.h
//  HaoDeCaiFu
//
//  Created by 郑开宏 on 2017/10/27.
//  Copyright © 2017年 郑开宏. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol TestJSExport <JSExport>
JSExportAs
(calculateForJS  /** handleFactorialCalculateWithNumber 作为js方法的别名 */,
 - (void)handleFactorialCalculateWithNumber:(NSDictionary *)number
 );
@end

@interface ViewController : UIViewController<UIWebViewDelegate,TestJSExport>

@property (strong, nonatomic) JSContext *context;

@end

